import { EventId } from "../../../new/event/EventId";
import EventMgr from "../../../new/event/EventMgr";
import { BattleRole } from "../../../new/role/BattleRole";
import { SkillData } from "../../../new/skill/const/SkillData";
import { BattleRoleUI } from "../../roleUI/BattleRoleUI";
import { ActionBase } from "./ActionBase";

/**
 * 动作-攻击
 */
export class AttackAction extends ActionBase {
    attackName: string
    constructor(casterUI: BattleRoleUI, attackName: string) {
        super();
        this.casterUI = casterUI;
        this.attackName = attackName
    }

    excute(): void {
        console.log("触发攻击行为")
        this.casterUI.playAni(this.attackName)
    }
}